<?php

/**
 * Created by PhpStorm.
 * User: Bu
 * Date: 2018/1/16
 * Time: 20:42
 */
namespace app\admin\validate;
use think\Validate;

class Category extends Validate
{
    protected $rule =   [
        'cname'  => 'require',
        'pid'   => 'require',
    ];

    protected $message  =   [
        'cname.require' => '名称不能为空',
        'pid.require'     => '名所属分类不能为空',
    ];

}